package com.rxz.controller;

import com.rxz.entity.Result;
import com.rxz.service.impl.BmapServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/bit")
@CrossOrigin
public class BmapController {

    @Resource
    private BmapServiceImpl bmapService;

    @PostMapping("/in")
    public Result login(@RequestParam Integer id){
        return bmapService.login(id);
    }

    @GetMapping("/check")
    public Result checkIn(@RequestParam Integer id){
        return bmapService.checkIn(id);
    }
}
